using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAO;
using System.Collections;
using System.Data;


namespace BUS
{
    public class DocGiaBUS
    {
        static public DataTable GetTableDocGia()
        {
            return DocGiaDAO.GetTableDocGia();
        }
        public ArrayList GetDocGia()
        {
            DocGiaDAO data = new DocGiaDAO();
            return data.GetDocGia();
        }
        public int GetSoMauTin()
        {
            DocGiaDAO data = new DocGiaDAO();
            return data.GetSoMauTin();
        }
       
        public void insert(DocGiaDTO info)
        {
            DocGiaDAO data = new DocGiaDAO();
            data.insert(info);
        }
        public void UpdateThongTin(DocGiaDTO info)
        {
            DocGiaDAO data = new DocGiaDAO();
            data.UpdateThongTin(info);
        }

        public void Delete(string madocgia)
        {
            DocGiaDAO data = new DocGiaDAO();
            data.Delete(madocgia);
        }
        public bool KiemTraDangNhap(string username, string matkhau)
        {
            DocGiaDAO data = new DocGiaDAO();
            return data.KiemTraDangNhap(username, matkhau);
        }
        public DocGiaDTO GetDocGiaDTO(string madocgia)
        {
            DocGiaDAO data = new DocGiaDAO();
            return data.GetDocGia(madocgia);
        }
    }
}
